home *** CD-ROM | disk | FTP | other *** search
- on lfxkeycontrol
- dontPassEvent()
- set the keyDownScript to "checkKey"
- end
-
- on lfxkeycontroloff
- dontPassEvent()
- set the keyDownScript to EMPTY
- end
-
- on checkkey
- global gvmacorwin, gvhelpmode, glkeyset, gvtempo, gvpictnum, glpictlist, gvmovpouse, gvmovpoint, gvmovhelppoint, gvmovwait, gvlmovie, gvsoundfade, gvsoundlevel, gvslevellist
- dontPassEvent()
- case getPos(glkeyset, the keyCode) of
- 1:
- nothing()
- 2:
- nothing()
- 3:
- nothing()
- 4:
- nothing()
- 5:
- nothing()
- 6:
- nothing()
- 7:
- nothing()
- 8:
- nothing()
- if gvsoundlevel < count(gvslevellist) then
- set gvsoundlevel to gvsoundlevel + 1
- else
- set gvsoundlevel to count(gvslevellist)
- end if
- set the volume of sound 1 to getAt(gvslevellist, gvsoundlevel)
- set the volume of sound 2 to getAt(gvslevellist, gvsoundlevel)
- set the volume of sprite 2 to getAt(gvslevellist, gvsoundlevel)
- 9:
- nothing()
- if gvsoundlevel > 1 then
- set gvsoundlevel to gvsoundlevel - 1
- else
- set gvsoundlevel to 1
- end if
- set the volume of sound 1 to getAt(gvslevellist, gvsoundlevel)
- set the volume of sound 2 to getAt(gvslevellist, gvsoundlevel)
- set the volume of sprite 2 to getAt(gvslevellist, gvsoundlevel)
- end case
- end
-